package ${basePackage}.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ${basePackage}.domain.${className};
import ${basePackage}.mapper.${className}Mapper;
import ${basePackage}.service.I${className}Service;

@Service
public class ${className}ServiceImpl implements I${className}Service {
	@Autowired
	private ${className}Mapper ${objectName}Mapper;


	@Override
	public ${className} get(Long id) {
		return ${objectName}Mapper.selectByPrimaryKey(id);
	}

	@Override
	public void update(${className} ${objectName}) {
		${objectName}Mapper.updateByPrimaryKey(${objectName});
	}



}
